package Practice;

import java.util.Scanner;

public class T6 {
//    水仙花数
    public static void main(String[] args) {
        for (int num = 0; num < 1000; num++) {
            int hundreds = num / 100;
            int tens = (num % 100) / 10;
            int ones = num % 10;

            if (Math.pow(hundreds, 3) + Math.pow(tens, 3) + Math.pow(ones, 3) == num) {
                System.out.println(num);
            }
        }
    }
}
